package com.ctg.payroll2.service.cusadmin;

import java.sql.SQLException;
import java.util.List;

import com.ctg.payroll2.bean.CsOrgchartTree;
import com.ctg.payroll2.bean.SimpleCsOrgchart;
import com.ctg.payroll2.bean.po.CsOrgchart;

public interface IOrgStructureManageService {
	public List<CsOrgchart> getSubOrganization(Integer organizationId) throws SQLException;
	public CsOrgchart getOrganizationInfo(Integer organizationId) throws SQLException;
	public CsOrgchart getParentOrganization(Integer organizationId) throws SQLException;
	public int modifyOrganization(CsOrgchart organization, Integer operation) throws SQLException;
	public CsOrgchart getRootOrganization(String company_code) throws SQLException;
	public CsOrgchart addOrganization(CsOrgchart organization) throws SQLException;
	public CsOrgchart editOrganization(CsOrgchart organization) throws SQLException;
	public int delOrganization(CsOrgchart organization) throws SQLException;
	CsOrgchartTree getOrgTree(String company_code) throws SQLException;
	List<SimpleCsOrgchart> getSimpleCsOrg(String company_code) throws SQLException; 
}
